#ifndef _KEY_H_
#define _KEY_H_

#include "def.h"

volatile U8  KeyCurrent, KeyOld , KeyNoChangedTime;
volatile U8 KeyPress ;
volatile U8 KeyDown , KeyUp, KeyLast;
volatile U8 KeyCanChange = 1;



#define GetKeyValue() (~rGPFDAT)
#define KEY_RIGHT 0x01
#define KEY_UP 0x02
#define KEY_LEFT 0x04
#define KEY_DOWN 0x10


void timer1_irq(void);
void Key_Right_HANDLE(void);
void Key_Up_HANDLE(void);
void Key_Down_HANDLE(void);
void Protect_Handle_Identify_KeyNum(void);

#endif


